package com.lingnan.blog.mapper;

import com.lingnan.blog.entity.TimeTravel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 时间旅行Dao
 */
@Mapper
@Repository
public interface TimeTravelMapper {

    /**
     * 查询所有记录
     * @return List<TimeTravel>
     */
    @Select("select * from time_travel")
    List<TimeTravel> selectAll();
}